<template>
  <div id="mdd-rec">
    <el-col :span="24">
      <div class="mdd_rec_a" v-for="(item, index) in seasonmdds" :key="index">
        <el-image :src="item.imgUrl"></el-image>
        <span class="mdd_rec_title">{{ item.name }}</span>
      </div>
    </el-col>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  props: {
    seasonmdds: {},
  },
};
</script>
<style lang="scss" scoped>
/deep/ .el-col-24 {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding-top: 8px;
}
.mdd_rec_a {
  position: relative;
  box-sizing: border-box;
  padding-bottom: 8px;
  cursor: pointer;
  &:nth-child(-n + 3) {
    width: 32.5%;
    padding-top: 8px;
  }
  &:nth-child(-n + 7):nth-child(n + 4) {
    width: 24%;
  }
  &:last-child {
    /deep/ .el-image {
      background-color: rgba(0, 0, 0, 0.5);
      img {
        position: relative;
        z-index: -1;
      }
    }
    .mdd_rec_title {
      left: 50%;
      top: 50%;
      bottom: 0;
      transform: translate(-50%, -50%);
      height: max-content;
    }
  }
}
#mdd-rec .el-image {
  width: 100%;
  height: 230px;
}
.mdd_rec_title {
  font-size: 25px;
  color: #ffffff;
  position: absolute;
  left: 30px;
  bottom: 30px;
}
</style>